import request from '@/utils/request'

export const FindByParentId = (parentId)=>{
    return request({
        url:`/admin/product/category/findByParentId/${parentId}`,
        method:'get' 
    })
}

export const ExportData = ()=>{
    return request({
        url:`/admin/product/category/download`,
        method:'get',
        responseType:'blob'//该接口返回的二进制的文件数据
    })
}